package com.twotigers.tenthpower.gathering.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import com.twotigers.tenthpower.gathering.dao.GatheringDao;
import com.twotigers.tenthpower.gathering.entity.GatheringEntity;
import com.twotigers.tenthpower.gathering.service.GatheringService;


@Service("gatheringService")
public class GatheringServiceImpl extends ServiceImpl<GatheringDao, GatheringEntity> implements GatheringService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<GatheringEntity> page = this.page(
                new Query<GatheringEntity>().getPage(params),
                new QueryWrapper<GatheringEntity>()
        );

        return new PageUtils(page);
    }

}